package com.danieltoms.gcSync.addressbook.widgets;

import net.rim.blackberry.api.invoke.Invoke;
import net.rim.blackberry.api.invoke.PhoneArguments;
import net.rim.device.api.ui.component.LabelField;

public class ClickablePhoneLabelField extends LabelField
{
	public ClickablePhoneLabelField(String string)
	{
		super(string, HIGHLIGHT_FOCUS | FOCUSABLE);
	}

	protected boolean navigationClick(int status, int time)
	{
		super.navigationClick(status, time);

		PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL, this.getText());
		Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);

		return true;
	}
}
